<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vendas - Pedidos de Venda</title>
</head>

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

<fieldset>
<legend>
<font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
<b>Pesquisa Pedidos</b>
</font>
</legend>

<form action="#" method="post" name="form">
<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td valign="middle" height="8">
    </td>
    </tr>

    <tr>
    <td align="left">
    
    
    	<table cellpadding="0" cellspacing="0" width="100%">
        <tr>
        <td width="134" height="25">
        <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
        <strong>&nbsp;&nbsp;Filtrar:</strong> 
        </font>
        </td>
        <td width="1077">
        &nbsp;
        <input type="text" name="busca"  size="40" title="Pesquisa produtos" />
        &nbsp; 
        <input type="radio" name="filtro_pesquisa" id="filtro_pesquisa" value="npedido" checked="checked" /> <b>Nr.Pedido</b> 
        &nbsp;
        <input type="radio" name="filtro_pesquisa" id="filtro_pesquisa2" value="oc" /> <b>O.C.</b>
        &nbsp;
        <input type="radio" name="filtro_pesquisa" id="filtro_pesquisa3" value="cpf" /> <b>CPF</b>
        </td>
        </tr>
        <tr>
        <td height="10" colspan="2"></td>
        </tr>
        <tr>
        <td width="134" height="25">
        <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
        <strong>&nbsp;&nbsp;Cliente:</strong> 
        </font>
        </td>
        <td>
        &nbsp;
        <input type="text" name="cliente"  size="40" title="Nome Completo" onclick="abre_cadastro();" readonly="readonly" />
        <input type="hidden" name="idcliente" id="idcliente" value="" />
        <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
        <strong>&nbsp;&nbsp;&nbsp;Vendedor(a):</strong> 
        </font>
        &nbsp;
        <input type="text" name="vendedor"  size="17" title="Nome vendedor(a)" readonly="readonly" onclick="abre_vendedores();"/>
        <input type="hidden" name="idvendedor" id="idvendedor" value="" />
        </td>
        </tr>
        <tr>
        <td height="10" colspan="2"></td>
        </tr>
        <tr>
        <td width="134" height="25">
        <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
        <strong>&nbsp;&nbsp;Emiss&atilde;o de:</strong> 
        </font>
		</td>
        <td height="25">
        &nbsp;
        <input type="text" name="dini"  size="12" title="Data de emiss&atilde;o inicial" />
        <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
        <strong>&nbsp;&nbsp;&agrave;&nbsp;</strong> 
        </font>
        &nbsp;
        <input type="text" name="dfim"  size="12" title="Data de emiss&atilde;o final" />
        

        &nbsp;&nbsp; &nbsp;&nbsp;
        <input type="checkbox" name="soc" id="soc" value="1" />
        <img src="imagens/icones/bola_cinza.png" title="Pedido sem OC" />

        <input type="checkbox" name="soc" id="soc" value="1" />
        <img src="imagens/icones/bola_amarela.png" title="Pedido com OC n&atilde;o conferida(s)" />

        <input type="checkbox" name="soc" id="soc" value="1" />
        <img src="imagens/icones/bola_verde.png" title="Pedido com OC conferida(s)" />

        <input type="checkbox" name="soc" id="soc" value="1" />
        <img src="imagens/icones/bola_azul.png" title="OC enviada para a f&aacute;brica" />

        <input type="checkbox" name="soc" id="soc" value="1" />
        <img src="imagens/icones/bola_vermelha.png" title="Produto chegou no deposito" />

        <input type="checkbox" name="soc" id="soc" value="1" />
        <img src="imagens/icones/entrega.png" title="Pedido com entrega agendada" />

        <input type="checkbox" name="soc" id="soc" value="1" />
        <img src="imagens/icones/conserto.png" title="Produto em conserto" />

        <input type="checkbox" name="soc" id="soc" value="1" />
        <img src="imagens/icones/devolucao.png" title="Devolu&ccedil;&atilde;o" />

        <input type="checkbox" name="soc" id="soc" value="1" />
        <img src="imagens/icones/finalizado.png" title="Pedido finalizado" />
        
        </td>
        </tr>
        <tr>
        <td height="10" colspan="2"></td>
        </tr>
        <tr>
        <td width="134" height="25">
        <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
        <strong>&nbsp;&nbsp;Entrega de:</strong> 
        </font>
		</td>
        <td height="25">
        &nbsp;
        <input type="text" name="denti"  size="12" title="Data de entrega inicial" />
        <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
        <strong>&nbsp;&nbsp;&agrave;&nbsp;</strong> 
        </font>
        &nbsp;
        <input type="text" name="dentf"  size="12" title="Data de entrega final" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="button" value="Localizar" onClick="pesquisar_pedidos();">
        
        </td>
        </tr>
        <tr>
        <td height="5" colspan="2"></td>
        </tr>
        </table>
    
    </td>
    </tr>
    
    <tr>
    <td align="center" valign="middle" height="8">
    </td>
    </tr>
</table>
</form>
</fieldset>

<br />
<fieldset>
<div align="right">
<input type="button" value="Inserir Novo" onClick="novo_pedido();">
&nbsp;
<input type="button" value="Editar" onClick="editar_pedidos();">
&nbsp;
<input type="button" value="Inserir O.C." onClick="alert('em implantacao');">
&nbsp;
<input type="button" value="Enviar OCs" onClick="alert('em implantacao');">
&nbsp;
<input type="button" value="Excluir" onClick="alert('em implantacao');">
</div>
</fieldset>
<br />

<fieldset>

<div id="lista" style="overflow:auto; height:240px; width:100%; border: 0px; background: #FFF;" >
<br />
<form action="#" method="post" name="form2">

<table cellpadding="0" cellspacing="0" width="98%">
<tr class="barra_titulo_consultas">
<td width="2%" height="30"></td>
<td width="10%" align="left" valign="middle">
<font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">
<b>Nr.Pedido</b>
</font>
</td>
<td width="32%" valign="middle" align="left">
&nbsp;
<font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">
<b>Cliente</b>
</font>
</td>
<td width="12%" align="center" valign="middle">
<font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">
<b>Dt.Entrega</b>
</font>
</td>
<td width="12%" align="center" valign="middle">
<font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">
<b>Dt.Emiss&atilde;o</b>
</font>
</td>
<td width="18%" align="right" valign="middle">
<font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">
<b>Valor R$</b>
</font>&nbsp;&nbsp;
</td>
<td width="14%" align="center" valign="middle">
<font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">
<b>Status</b>
</font>&nbsp;&nbsp;
</td>
</tr>

<!-- START BLOCK : LOOP -->
<tr style="background-color:{cor};" onMouseOver="javascript:this.style.backgroundColor='#dce3e9'" onMouseOut="javascript:this.style.backgroundColor='{cor}'">
	<td valign="middle" height="30">
    <center>
    <input type="checkbox" id="ck{cont}" name="ck{cont}" value="{par_id}" />
    </center>
    </td>
	<td align="left" title="teste informa&ccedil;&otilde;es extras">
    &nbsp;
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
	{id}
    </font>
	</td>
	<td align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    &nbsp; {nome}
    </font>
    </td>
	<td align="center" >
    <font color="{cores}" size="2" face="Arial, Helvetica, sans-serif">
    {dt_entrega}
    </font>
    </td> 
	<td align="center" >
    <font color="{cores}" size="2" face="Arial, Helvetica, sans-serif">
    {dt_entrega}
    </font>
    </td> 
	<td align="right" >
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    {valor}&nbsp;&nbsp;
    </font>
    </td> 
	<td align="center" >
    {status}
    </td> 
</tr>
<!-- END BLOCK : LOOP -->
<tr>
	<td colspan="7">
    <br />
    <center> 
    {pag}
    </center>
    </td>
</tr>
</table>
</form>
</div>
</fieldset>

</body>
</html>
